package com.fcy.teamwork.business.main.homepage.viewmodel

import com.fcy.teamwork.pojo.Job
import com.fcy.teamwork.pojo.JobDetail
import com.fcy.teamwork.pojo.TeamWorkResult
import retrofit2.http.*


interface TaskMarketService {

    @POST("sms/job/searchJobDetail/{pageNo}/{pageSize}")
    suspend fun loadJobs(
        @Path("pageNo") pageNo: Int,
        @Path("pageSize") pageSize: Int,
        @Body job: Job = Job()
    ): TeamWorkResult<List<JobDetail>>


    @POST("sms/apply/newApply")
    suspend fun applyJob(@Body job: Job): TeamWorkResult<Boolean>
}